package com.tzxs.pay.util.websocket.model;

import android.os.Parcel;
import android.os.Parcelable;

public class WebSocketBean {

    /**
     * client_id : 7f0000010b5400000dee
     * login_type : 2
     * user_phone : 17500001800
     * updated_at : 2018-06-30 17:31:27
     * created_at : 2018-06-30 17:31:27
     * id : 13728
     */

    private String client_id;
    private String login_type;
    private String user_phone;
    private String updated_at;
    private String created_at;
    private MsgBean msg;
    private int id;

    private String type;

    public void setType(String type) {
        this.type = type;
    }

    public String getClient_id() {
        return client_id;
    }

    public void setClient_id(String client_id) {
        this.client_id = client_id;
    }

    public String getLogin_type() {
        return login_type;
    }

    public void setLogin_type(String login_type) {
        this.login_type = login_type;
    }

    public String getUser_phone() {
        return user_phone;
    }

    public void setUser_phone(String user_phone) {
        this.user_phone = user_phone;
    }

    public String getUpdated_at() {
        return updated_at;
    }

    public void setUpdated_at(String updated_at) {
        this.updated_at = updated_at;
    }

    public String getCreated_at() {
        return created_at;
    }

    public void setCreated_at(String created_at) {
        this.created_at = created_at;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public MsgBean getMsg() {
        return msg;
    }

    public void setMsg(MsgBean msg) {
        this.msg = msg;
    }

    public static class MsgBean implements Parcelable {

        /**
         * type : QRPAY
         * title : 二维码支付
         * orderid : 2018070310134612623774
         * amount : 0.01
         * print_body : \n 收银员: 天择信上-总部     \n===========================\n 交易时间: 2018-07-03 10:13:46\n 付款方式: 支付宝支付\n 订单类型: 二维码收款\n 订单号: 2018070310134612623774\n 交易流水号: \n 2018070321001004380583634607\n 交易金额: 0.01 元\n 消费帐户: 176****9188\n 状态: 支付成功\n 注:\n===========================\n\n
         * store_name : 天择信上科技
         * out_order_no : 2018070310134612623774
         */

        private String type;
        private String title;
        private String orderid;
        private String amount;
        private String print_body;
        private String store_name;
        private String out_order_no;


        protected MsgBean(Parcel in) {
            type = in.readString();
            title = in.readString();
            orderid = in.readString();
            amount = in.readString();
            print_body = in.readString();
            store_name = in.readString();
            out_order_no = in.readString();
        }

        public static final Creator<MsgBean> CREATOR = new Creator<MsgBean>() {
            @Override
            public MsgBean createFromParcel(Parcel in) {
                return new MsgBean(in);
            }

            @Override
            public MsgBean[] newArray(int size) {
                return new MsgBean[size];
            }
        };

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getOrderid() {
            return orderid;
        }

        public void setOrderid(String orderid) {
            this.orderid = orderid;
        }

        public String getAmount() {
            return amount;
        }

        public void setAmount(String amount) {
            this.amount = amount;
        }

        public String getPrint_body() {
            return print_body;
        }

        public void setPrint_body(String print_body) {
            this.print_body = print_body;
        }

        public String getStore_name() {
            return store_name;
        }

        public void setStore_name(String store_name) {
            this.store_name = store_name;
        }

        public String getOut_order_no() {
            return out_order_no;
        }

        public void setOut_order_no(String out_order_no) {
            this.out_order_no = out_order_no;
        }


        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(type);
            dest.writeString(title);
            dest.writeString(orderid);
            dest.writeString(amount);
            dest.writeString(print_body);
            dest.writeString(store_name);
            dest.writeString(out_order_no);
        }
    }
}